def twonumberSum(array, numberSum):

    array.sort()
        
    l = 0
    r = len(array) - 1
        
    while l < r:
        currentSum = array[l] + array[r]
            
        if currentSum == numberSum:
            return [array[l], array[r]]
            
        elif currentSum < numberSum:
            l += 1
               
        elif currentSum > numberSum:
            r -= 1
            
    return []

print(twonumberSum([3, 5, -4, 8, 11, 1, -1, 6], 10))